package com.cpp.pojo.vo.question;

import com.cpp.pojo.pojo.Question;
import com.cpp.pojo.vo.chapter.ChapterConfirmVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class QuestionCreateConfirmVO implements Serializable {
    //考试id
    private Long examId;
    //题目列表
    private List<QuestionVO> questions;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class QuestionVO{
        //题目id
        private Long questionId;
        //类型：1`开放题`/`2选择题`/3`简答题`
        private Integer type;
        //题目内容（含题干、选项等）
        private String content;
        //难度：1`简单`/2`中等`/3`困难`
        private Integer difficulty;
        //正确答案
        private String answer;
        //答案解析
        private String analysis;
        //分数
        private Integer score;

    }
}
